#include a_samp
#include string
#include <myfuncsdll>
//forward OnRconCommand(cmd[]);
//native printf(const format[], {Float,_}:...);
native myq_getplayers(const ip[], port, &pmax, &pcur);
//native strcmp(const string1[], const string2[], bool:ignorecase=false, length=cellmax);

public OnRconCommand(cmd[])
{
	new tmp[40], tmp2[30], idx=0;
	mystrtok(tmp, cmd, idx);
	if(strcmp(tmp, "myquery", true)) return 0;
	new pmax,cur;
	mystrtok(tmp, cmd, idx);
	mystrtok(tmp2, cmd, idx);
	myq_getplayers(tmp,strval(tmp2), pmax, cur);
	//myq_getplayers("83.222.114.142", 8901, pmax, cur);
	printf("%d/%d", cur, pmax);
	return 1;
}